/**
 * FileName: XiongMaoFilter
 * Author:   杨兴
 * Date:     2019/8/14 15:22
 * Description: 测试xiongmao过滤器
 */
package com.xiongmao.gongyu;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.exception.ZuulException;
import org.springframework.cloud.netflix.zuul.filters.support.FilterConstants;
import org.springframework.stereotype.Component;

@Component
public class XiongMaoFilter extends ZuulFilter {
    @Override
    public String filterType() {
        return "pre";
    }

    @Override
    public int filterOrder() {
        return 1;
    }

    @Override
    public boolean shouldFilter() {
        return true;
    }

    @Override
    public Object run() throws ZuulException {
        System.out.println("123");
        return null;
    }
}

